<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>公司详情</title>
</head>
<body class="layui-layout-body">

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title">公司详情</h4>
            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <ul class="layui-tab-title">
                    <li lay-id="INFO">公司信息</li>
                    <li lay-id="MANAGER">管理员信息</li>
                    <li  class="layui-this" lay-id="DEVICES">设备列表</li>
                </ul>
                <div class="layui-tab-content" style="height: 100px;">
                    <div class="layui-tab-item layui-show">
                        <table class="layui-table mytable" lay-even="" lay-skin="nob">
                            <thead>
	                            <tr>
	                                <th>设备编号</th>
	                                <th>设备型号</th>
	                                <th>申请日期</th>
	                                <th>失效日期</th>
	                                <th>版本号</th>
	                                <th>状态</th>
	                                <th>操作</th>
	                            </tr>
                            </thead>
                            <tbody>
                            	    <#list pm.datas as item>
		                            <tr>
		                                <td>${item.devicesCode}</td>
		                                <td>${item.model}</td>
		                                <td>
		                                		<#if item.bindingTime??>
		                                			${item.bindingTime?string('yyyy-MM-dd')}
		                                		</#if>
		                                
		                                </td>
		                                <td>
		                                		<#if item.expireDate??>
		                                			${item.expireDate?string('yyyy-MM-dd')}
		                                		</#if>
		                                </td>
		                                <td>${item.devicesVerson}</td>
		                                <td>${item.devicesStatus}</td>
		                                <td class="allbox_a"><a href="javascript:;">详情</a></td>
		                            </tr>
                           	   </#list>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </div>
     </div>
	<script>
	layui.use(['element','laydate'], function(){
		  var $ = layui.jquery,element = layui.element,laydate = layui.laydate; 
		  element.on('tab(docDemoTabBrief)', function(elem){
		  		var id = $(this).attr('lay-id');
		  		if(id == 'INFO'){
		  		 	location.href='/admin/company/info.htm?companyId=${company.companyId}';
		  		}
		  		if(id == 'MANAGER'){
		  		 	location.href='/admin/company/manager.htm?companyId=${company.companyId}';
		  		}
		  });
	});
	</script>
</body>
</html>